package com.xx.framework;

import java.util.UUID;

import com.xx.framework.math.Rectangle;
import com.xx.framework.math.Vector2;

public class GameObject {
	public final String id;
    public final Vector2 position;
    public final Rectangle bounds;
    
    public GameObject(float x, float y, float width, float height) {
    	this.id = UUID.randomUUID().toString();
        this.position = new Vector2(x,y);
        this.bounds = new Rectangle(x-width/2, y-height/2, width, height);
    }

	public String getId() {
		return id;
	}
	
}
